package com.javasm.gg;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.javasm.gg.converter.ProductColorConverter;

@TableName("gg_product")
public class Product {
  @TableId(value="id",type= IdType.AUTO)
  private Integer id;
  @ExcelProperty(value = "编码")
  private String coding;//存货档案编码
  @ExcelProperty(value = "分类")
  private String classify;//基础库-分类
  @ExcelProperty(value = "品牌")
  private String brand;//基础库-品牌
  @ExcelProperty(value = "型号")
  private String model;//基础库-型号
  @ExcelProperty(value = "业务模式")
  private String business;//基础库-业务模式
  @ExcelProperty(value = "颜色",converter = ProductColorConverter.class)
  private String color;//基础库-颜色
  @ExcelProperty(value = "采购模式")
  private String purchasingPattern;//基础库-采购模式
  @ExcelProperty(value = "铺货")
  private String distribution;//基础库-铺货
  @ExcelProperty(value = "备机")
  private String standby;//基础库-备机
  private String createTime;
  private String updateTime;

  @TableField(exist = false)
  @ExcelProperty(value = "异常原因")
  private String errorReason="数据库异常";

  public String getErrorReason() {
    return errorReason;
  }

  public void setErrorReason(String errorReason) {
    this.errorReason = errorReason;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getCoding() {
    return coding;
  }

  public void setCoding(String coding) {
    this.coding = coding;
  }


  public String getClassify() {
    return classify;
  }

  public void setClassify(String classify) {
    this.classify = classify;
  }


  public String getBrand() {
    return brand;
  }

  public void setBrand(String brand) {
    this.brand = brand;
  }


  public String getModel() {
    return model;
  }

  public void setModel(String model) {
    this.model = model;
  }


  public String getBusiness() {
    return business;
  }

  public void setBusiness(String business) {
    this.business = business;
  }

  public String getColor() {
    return color;
  }

  public void setColor(String color) {
    this.color = color;
  }

  public String getPurchasingPattern() {
    return purchasingPattern;
  }

  public void setPurchasingPattern(String purchasingPattern) {
    this.purchasingPattern = purchasingPattern;
  }


  public String getDistribution() {
    return distribution;
  }

  public void setDistribution(String distribution) {
    this.distribution = distribution;
  }


  public String getStandby() {
    return standby;
  }

  public void setStandby(String standby) {
    this.standby = standby;
  }


  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }

  public String getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(String updateTime) {
    this.updateTime = updateTime;
  }
}
